package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SaleAnalyse01Mapper;
import com.ruoyi.system.domain.SaleAnalyse01;
import com.ruoyi.system.service.ISaleAnalyse01Service;

/**
 * 库存报表Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-08
 */
@Service
public class SaleAnalyse01ServiceImpl implements ISaleAnalyse01Service 
{
    @Autowired
    private SaleAnalyse01Mapper saleAnalyse01Mapper;

    /**
     * 查询库存报表
     * 
     * @param stuffId 库存报表主键
     * @return 库存报表
     */
    @Override
    public SaleAnalyse01 selectSaleAnalyse01ByStuffId(Long stuffId)
    {
        return saleAnalyse01Mapper.selectSaleAnalyse01ByStuffId(stuffId);
    }

    /**
     * 查询库存报表列表
     * 
     * @param saleAnalyse01 库存报表
     * @return 库存报表
     */
    @Override
    public List<SaleAnalyse01> selectSaleAnalyse01List(SaleAnalyse01 saleAnalyse01)
    {
        return saleAnalyse01Mapper.selectSaleAnalyse01List(saleAnalyse01);
    }

    /**
     * 新增库存报表
     * 
     * @param saleAnalyse01 库存报表
     * @return 结果
     */
    @Override
    public int insertSaleAnalyse01(SaleAnalyse01 saleAnalyse01)
    {
        return saleAnalyse01Mapper.insertSaleAnalyse01(saleAnalyse01);
    }

    /**
     * 修改库存报表
     * 
     * @param saleAnalyse01 库存报表
     * @return 结果
     */
    @Override
    public int updateSaleAnalyse01(SaleAnalyse01 saleAnalyse01)
    {
        return saleAnalyse01Mapper.updateSaleAnalyse01(saleAnalyse01);
    }

    /**
     * 批量删除库存报表
     * 
     * @param stuffIds 需要删除的库存报表主键
     * @return 结果
     */
    @Override
    public int deleteSaleAnalyse01ByStuffIds(Long[] stuffIds)
    {
        return saleAnalyse01Mapper.deleteSaleAnalyse01ByStuffIds(stuffIds);
    }

    /**
     * 删除库存报表信息
     * 
     * @param stuffId 库存报表主键
     * @return 结果
     */
    @Override
    public int deleteSaleAnalyse01ByStuffId(Long stuffId)
    {
        return saleAnalyse01Mapper.deleteSaleAnalyse01ByStuffId(stuffId);
    }
}
